﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VoteUphold;

namespace Vote
{
    public partial class FrmSLL : Form
    {
        public FrmSLL()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            VUvote vuvote = new VUvote(new VoteUrl());
            vuvote.voteUrl.AdressVoteShow = "https://mail.qq.com/cgi-bin/loginpage";
            byte[] bytes = vuvote.httpClient.DownloadData(vuvote.voteUrl.AdressVoteShow);

           string srcHtml = Encoding.GetEncoding("gb2312").GetString(bytes);
           vuvote.voteUrl.AdressVoteSend = "https://mail.qq.com/cgi-bin/login?sid=,2,zh_CN";
           string postData = "uin=605064709@qq.com&pp=";
           string result = vuvote.httpClient.PostData(vuvote.voteUrl.AdressVoteSend, postData, Encoding.GetEncoding("gb2312"), Encoding.GetEncoding("gb2312"));

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }
    }
}
